Creates the resources needed by the @renderer to render the scene graph.
Since GTK 4.6, the surface may be NULL, which allows using renderers without having to create a surface.
Note that it is mandatory to call [method@Gsk.Renderer.unrealize] before destroying the renderer.
the GdkSurface renderer will be used on
Whether the renderer was successfully realized
GException on failure.
See Implementation
Creates the resources needed by the @renderer to render the scene graph.
Since GTK 4.6, the surface may be NULL, which allows using renderers without having to create a surface.
Note that it is mandatory to call [method@Gsk.Renderer.unrealize] before destroying the renderer.